/*
 * Created on 30/10/2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.mushroomdb.lock.locktypes;

/**
 * @author Tomas
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class TableLock extends Lock {
    private String tableId;
    /**
     * @param id
     * @param exclusive
     * @param userId
     */
    public TableLock(long id, boolean exclusive, String userId, String tableId) {
        super(id, exclusive, userId);
        this.tableId = tableId;     
     }

    /**
     * @return Returns the tableId.
     */
    public String getTableId() {
        return this.tableId;
    }
    /**
     * @param tableId The tableId to set.
     */
    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

   
    public boolean isPage() {
       return false;
    }

   
    public boolean isTable() {
        return true;
    }
   
    public boolean isRegister() {
       return false;
    }
}
